<?php class Form_VatForm extends Form_Custom_General {
        public function init() {

		$vat_id = $this->createElement("hidden", "vat_id")
                     ->setRequired(FALSE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter id")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Id"));
                     $this->addElement($vat_id);
                     
        $vatValidator = new Zend_Validate_Float();
	$vatValidator->setMessage('Please enter only number');
		$vat_percent = $this->createElement("text", "vat_percent")
                     ->setRequired(TRUE)
                     ->addValidator($vatValidator, true)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter percentage")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Percentage"));
                     $this->addElement($vat_percent);

		

		

		$vat_status = $this->createElement("select", "vat_status")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter status")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Status"));
                     $this->addElement($vat_status);

		

		}
        }?>